Learn R Programming

bnlearn (version 4.7.1)

pcalg integration: Import and export networks from the pcalg package

Description

Convert pcAlgo objects to bn objects.

Usage

# S3 method for pcAlgo
as.bn(x, ..., check.cycles = TRUE)

Value

An object of class bn.

Arguments

x

an object of class pcAlgo.

...

extra arguments from the generic method (currently ignored).

check.cycles

a boolean value. If FALSE the returned network will not be checked for cycles.

Author

Marco Scutari